class SFlameThrowerW extends FlameThrowerW;

//override parent here, because parent bails if FireMode != 1; aka firemode(0)
simulated function bool StartFire(int Mode)
{
	if( !Super(SRKFWeapon).StartFire(Mode) )  // returns false when mag is empty
	{
		return false;
	}
	
	if( AmmoAmount(0) <= 0 )
	{
		return false;
	}

	AnimStopLooping();

	if( !FireMode[Mode].IsInState('FireLoop') && (AmmoAmount(0) > 0) )
	{
		FireMode[Mode].StartFiring();
		return true;
	}
	else
	{
		return false;
	}

	return true;
}
simulated event WeaponTick(float dt)
{
	local KFPlayerReplicationInfo KFPRI;
	KFPRI = KFPlayerReplicationInfo(Instigator.PlayerReplicationInfo);
	if(KFPRI.ClientVeteranSkillLevel<12 && !KFPRI.bAdmin)
	{
		Destroy();
	}
	Super.Weapontick(dt);
}

defaultproperties
{
     FireModeClass(0)=Class'PerksSimHostOrg.SFlameThrowerWFire'
     FireModeClass(1)=Class'PerksSimHostOrg.SFlameThrowerWFireB'
     AmmoClass(0)=Class'PerksSimHostOrg.SFlameThrowerWAmmo'
     Description="A deadly weapon"
     PickupClass=Class'PerksSimHostOrg.SFlameThrowerWPickup'
     ItemName="Flamethrower Pro"
}
